//
//  CategoryCollectionReusableView.m
//  Gift
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CategoryCollectionReusableView.h"

@interface CategoryCollectionReusableView ()
@property (nonatomic, strong) UIButton *button;
@property (nonatomic, strong) UILabel *label;
@end

@implementation CategoryCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame = CGRectMake(frame.size.width * 0.7, 0, frame.size.width * 0.3, frame.size.height);
        [_button setTitle:@"查看全部" forState:UIControlStateNormal];
        [_button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [self addSubview:_button];
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(5, 0, frame.size.width * 0.3, frame.size.height)];
        _label.text = @"品类";
        [self addSubview:_label];
    }
    return self;
}
@end
